package com.leanyuan.publi.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leanyuan.publi.dao.BuildingMapper;
import com.leanyuan.publi.domain.Building;
import com.leanyuan.publi.service.BuildingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 相亲相爱一家人
 * @since 2021-05-25
 */
@Service
public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> implements BuildingService {

    @Autowired
    BuildingMapper buildingMapper;

    @Override
    public Page<Building> findAllp(Page<Building> page,Integer id,String name) {
        return  page.setRecords(buildingMapper.findAll(page,id,name));
    }
}
